<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css">
    <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css">
    <link rel="stylesheet" type="text/css" href="../../css/api.css">
    <script type="text/javascript" src="../../script/api.js"></script>
</head>

<body>
    <header class="aui-bar aui-bar-nav"  style="top:-0.1rem;background-color: #f7911b;height: 3rem;">
        <a  class="aui-pull-left"><span class="aui-iconfont aui-icon-left" onclick="api.closeWin()"></span></a>
        <div class="aui-title">安全中心</div>
    </header>
    <div class="aui-content" style="border-radius:0;margin-top: 0rem;">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-title" onclick="openUpdatePassword()">修改登录密码</div>
                    </div>
                </div>
            </li>
        </ul>
    </div>

    <div class="aui-content" style="border-radius:0;margin-top: 0rem;">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-title" onclick="openSetPassword()">设置提领密码</div>
                    </div>
                </div>
            </li>
        </ul>
    </div>

    <!-- <div class="aui-content">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-title" onclick="openBindPhone()">绑定手机号码</div>
                    </div>
                </div>
            </li>
        </ul>
    </div> -->

    <div class="aui-content" style="border-radius:0;margin-top: 0rem;">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-title" onclick="openZFB()">绑定支付宝</div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</body>
<script type="text/javascript">
    apiready = function() {
        window.openUpdatePassword = function() {
            api.openFrame({
                name: 'SetPassword',
                url: './SetPassword.html',
                rect: {
                    x: 0,
                    y: 0,
                    w: 'auto',
                    h: 'auto'
                },
                allowEdit:true
            });
        }
        window.openSetPassword = function() {
            api.openFrame({
                name: 'SetTilingPas',
                url: './SetTilingPas.html',
                rect: {
                    x: 0,
                    y: 0,
                    w: 'auto',
                    h: 'auto'
                },
                allowEdit:true
            });
        }
        window.openZFB=function () {
          var token=api.pageParam.token;
          api.openFrame({
              name: 'zhifubao',
              url: './zhifubao.html',
              rect: {
                  x: 0,
                  y: 0,
                  w: 'auto',
                  h: 'auto'
              },
              pageParam: {
                  token: token
              },
              allowEdit:true
          });

        }
        // window.openBindPhone = function() {
        //   var token=api.pageParam.token;
        //   api.ajax({
        //       url: 'http://www.mk517.com/webApi/updateBindPhone.php',
        //       method: 'post',
        //       dataType:'json',
        //       "headers":{"Content-Type":"application/json"},
        //       data: {
        //         body:token
        //       }
        //   },function(ret, err){
        //       if (ret) {
        //         if(ret.info='未绑定手机号！'){
        //           api.openFrame({
        //               name: 'UpdatePassword',
        //               url: './UpdateBindPhone_2.html',
        //               rect: {
        //                   x: 0,
        //                   y: 0,
        //                   w: 'auto',
        //                   h: 'auto'
        //               }
        //           });
        //         }else {
        //           api.openFrame({
        //               name: 'UpdatePassword',
        //               url: './UpdateBindPhone_1.html',
        //               rect: {
        //                   x: 0,
        //                   y: 0,
        //                   w: 'auto',
        //                   h: 'auto'
        //               }
        //           });
        //         }
        //       } else {
        //           // alert( JSON.stringify( err ) );
        //       }
        //   });
        //
        //
        //
        // }
    }
</script>

</html>
